<template>
	<view
		style="width: 100%;height: 100vh;position: fixed;top: 0;left: 0;z-index: 100001;background-color: rgba(0, 0, 0, 0.5);"
		v-show="isShowActi" @click="closePopActi()">
		<view style="width: 100%;height: 500rpx;margin-top: calc(50vh - 480rpx);">
			<view style="display: grid;place-items: center;">
				<image :src="djzxkcls" @click="toWx()"
					style="width: 360rpx;z-index: 9999;position: relative;top: 260rpx;" mode="widthFix">
				</image>
				<image src="../../../static/images/portraitMaster/pop/popbg.png" style="width: 750rpx;" mode="widthFix">
				</image>
				<image :src="qrcode" style="width: 220rpx;z-index: 9999;position: relative;bottom: 320rpx;"
					mode="widthFix">
				</image>
			</view>

		</view>
	</view>
</template>

<script>
	import animationType from '@/utils/animationType.js'
	import {
		getSecondPop,
		getWechatURLLink
	} from '@/api/home.js';
	const comUrl = "https://pic.mae.vip/%E4%BA%BA%E5%83%8F%E5%AE%9E%E6%88%98%E7%8F%AD%E7%B4%A0%E6%9D%90/";
	export default {
		props: {},
		data() {
			return {
				//popbg: comUrl + 'popbg.png',
				popbg: '../../../static/images/portraitMaster/pop/popbg.png',
				djzxkcls: comUrl + 'djzxkcls.png',
				qrcode: comUrl + 'bxcode.png',
				pic: '',
				isShowActi: false,
				closeImg: 'https://pic.mae.vip//crmebimage/public/maintain/2024/09/10/71f1a9aba07d46fdb88b81562904236fwes70ule49.png',
				userId: '',
				token: '',
			}
		},
		mounted() {
			let that = this;
		},
		onLoad(options) {
			let that = this;
		},
		onShow() {
			let that = this;
		},
		methods: {
			toWx() {
				let that = this;
				let platform = uni.getSystemInfoSync().platform; //手机类型
				if (platform == 'ios') {
					window.webkit.messageHandlers.goWechat.postMessage("");
				}
				if (platform == 'android') {
					window.location.href = 'goWechat';
				}
			},
			showPop(url) {
				let that = this;
				that.isShowActi = true;
				that.popbg = '../../../static/images/portraitMaster/real/pop/popbg.png';
			},
			closePopActi() {
				this.isShowActi = false;
			},
			getSecondPop() {
				let that = this;
			},
		},
	}
</script>

<style lang="scss" scoped>

</style>